home *** CD-ROM | disk | FTP | other *** search
/ Informática Multimedia 1995 April / Informatica Multimedia CD - Epimundo.iso / DOS / FILE_CHG / PAD30 / PAD3.DOC < prev   
Encoding:
Text File  |  1991-08-27  |  4.9 KB  |  127 lines

  1.                      PadIt 3.0
  2.                 By:  George Spafford
  3.                    August 28, 1991
  4.  
  5. Purpose:
  6.  
  7. To convert variable length record formats to fixed length
  8. record formats by either the user specifying the desired fixed
  9. length or the computer analyzing the data file, selecting the
  10. longest record and then padding all other records with spaces
  11. to equal lengths.
  12.  
  13. Procedure:
  14.  
  15. With Version 3.0, users have a much wider range of options available
  16. to them on the command line.  PAD can be invoked as follows:
  17.  
  18. PAD /S:source /T:target /A /L:nnn /D /N /R
  19.  
  20.     /S:source   "source" is the source file
  21.  
  22.     /T:target   "target" is the destination file
  23.                 You can bypass this if you specify the /R switch.
  24.  
  25.                 If /S: and /T: have the same file names, the /R replace
  26.                 option is assumed.  See /R for further details.
  27.  
  28.     /A          This option instructs pad to read the file once, determine
  29.                 what the maximum record length is in the file and then
  30.                 pad all other records to that length thus creating a fixed
  31.                 length file format.
  32.  
  33.     /L:nnn      Here, the user can specify the record length.  This is handy
  34.                 when the user needs a record length that is longer than any
  35.                 of the source records.  "nnn" is the desired length of the
  36.                 output records in terms of bytes (characters).
  37.  
  38.                 /A or /L:nnn must be specified on the command line or the
  39.                 menu will appear and ask you which you want to do.
  40.  
  41.     /D          This switch will cause the program to delete the source file
  42.                 once the destination file has been created (completely, in
  43.                 other words, for a while both files will exist on the disk).
  44.  
  45.     /N          This switch will cause data records to be streamed to the
  46.                 disk.  In other words, CR/LF record delimitters will be
  47.                 bypassed and the records will be written sequentially to the
  48.                 output file.
  49.  
  50.     /R          This switch will instruct the program to replace the source
  51.                 data with the new data once the program has finished.  What
  52.                 happens is that PAD writes a temporary file "PAD$$$.TMP" to
  53.                 the disk with all of the converted records, it then deletes
  54.                 the source file, copies the temporary file to the source file
  55.                 and it then deletes the temporary file.
  56.  
  57. Examples:
  58.  
  59.         The following command reads in FIXED.TXT, automatically determines the
  60.         longest record length in it and then writes the changes to FIXED.FIX
  61.         
  62.         PAD  /S:Fixed.txt /T:Fixed.fix /a       
  63.  
  64.         The next example modifies the source file with a user-defined length
  65.         of 128 bytes.
  66.  
  67.         PAD /S:FIXED.TXT  /R /L:128
  68.  
  69.         The next example will read FIXED.TXT in, determine the length it needs,
  70.         write it to the output file and then delete the source.
  71.  
  72.         PAD /S:FIXED.TXT /T:FIXED.FIX /A /D
  73.  
  74. The program can still be invoked by typing only PAD and then answering the
  75. questions as to the filenames and how you wish to set the record lengths.
  76. However, the menus do not have the file manipulation options that the command
  77. line does.  Note, you can mix command line options and menus.
  78.  
  79. I hope this program helps you evaluate some of your problems
  80. or even makes some solutions/benefits clear.  This program is SHAREWARE.
  81. IT IS NOT PUBLIC DOMAIN.  If you find that this program aids you, you are
  82. required ethically and legally to register it after a 30 day evaluation period.
  83. This software is priced at $5 for each concurrently used copy in an
  84. organization.
  85.  
  86.           Sincerely,
  87.  
  88.           George Spafford
  89.           3001 LakeShore Drive, #329
  90.           St. Joseph, MI 49085
  91.  
  92.          Data:    (616) 468-5026  Queued Access BBS 19200-8-N-1
  93.                   FIDOnet:  1:227/250
  94.  
  95.           And now for the unpleasantries:
  96.  
  97.  
  98.           PADIT IS DISTRIBUTED AS IS.  THE AUTHOR (GEORGE SPAFFORD)
  99.       MAKES NO WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED,
  100.       INCLUDING BUT NOT LIMITED TO TO WARRANTIES OF MERCHANTABILITY
  101.       OR FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THIS
  102.       SOFTWARE AND DOCUMENTATION. IN NO EVENT SHALL THE AUTHOR BE
  103.       LIABLE FOR ANY DAMAGES, INCLUDING LOST PROFITS, LOST SAVINGS,
  104.       OR ANY OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT
  105.       OF THE USE OF OR THE INABILITY TO USE THIS PROGRAM.
  106.  
  107.  
  108.           ----------------------------------------------------------------
  109.  
  110.           Is it just me, or do all of the disclaimers look the same??
  111.       (At least mine all look the same)
  112.  
  113.       ----------------------------------------------------------------     
  114.  
  115.  
  116. Other Products:
  117.  
  118.  
  119.      Cache Test    Find out just how much your cache really
  120.             helps!
  121.  
  122.      CutIt        Parse streamed files by x number of bytes
  123.             and add a CR/LF at the end.
  124.  
  125.      PadIt        Convert Variable length records to a Fixed
  126.             length format.
  127.